import Vue from "vue";
import App from "./App.vue";
import plugins from "@/plugins/index";
import store from "@/store/index";
import { cloneDeep } from "lodash";
import moment from "moment";
// import MyUI from "./packages";

// 全局组件
import TbButton from "@/packages/button";
import TbModal from "@/packages/modal";
import TbCell from "@/packages/cell";
import TbTabs from "@/packages/tabs";
import TbPopup from "@/packages/popup";
Vue.component("TbButton", TbButton);
Vue.component("TbModal", TbModal);
Vue.component("TbCell", TbCell);
Vue.component("TbTabs", TbTabs);
Vue.component("TbPopup", TbPopup);
Vue.config.productionTip = false;
Vue.prototype.$store = store;
Vue.prototype.$cloneDeep = cloneDeep;
Vue.prototype.$moment = moment;

Vue.use(plugins);

declare module "vue/types/vue" {
  interface Vue {
    $api: any;
    $validate: any;
    $confirm: any;
    $cloneDeep: any;
    $moment: any;
  }
}
// const app = new Vue({
//   ...App,
//   store,
// });
new App().$mount();
